package com.example.books.ui.notifications;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class NotificationsViewModel extends ViewModel {

    private MutableLiveData<String> mText;
    private int sid;
    private String sname;

    public void setSid(int sid) {
        this.sid = sid;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public NotificationsViewModel() {

    }

    public LiveData<String> getText() {
        mText = new MutableLiveData<>();
        mText.setValue(sid+"号   用户"+sname);
        return mText;
    }
}